package com.example.a2023110445

import android.widget.Spinner
import android.widget.TextView

class LanguageController(
    private val model: LanguageModel,
    private val spinner: Spinner,
    private val tvResult: TextView
) {
    fun handleConfirm() {
        val selectedLanguage = spinner.selectedItem.toString()
        val advice = model.getAdvice(selectedLanguage)
        tvResult.text = advice
    }
}